<?php
/**
 * Created by PhpStorm.
 * User: Lxx<779219930@qq.com>
 * Date: 2018/12/10
 * Time: 16:54
 */

namespace app\admin\validate;


use think\Validate;

class Wechat extends Validate
{
    protected $rule = [
        'name' =>  'require',
        'mobile' => 'require',
    ];

    protected $message = [
        'name.require' =>  '用户姓名不能为空！',
        'mobile.require' =>  '手机号码不能为空！',
    ];

    protected $scene = [
        'user' => ['name,mobile'],
    ];
}